package com.gxy.learn.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxy.learn.mybatisplus.entity.SysUser;
import com.gxy.learn.mybatisplus.vo.ListPageReqVO;
import com.gxy.learn.mybatisplus.vo.SysUserInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: Gao xueyong
 * Create at: 2021/12/15 下午9:49
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 分页查询
     *
     * @param mPage
     * @param reqVO
     * @return
     */
    IPage<SysUserInfoVO> listPage(IPage<SysUserInfoVO> mPage, @Param("reqVO") ListPageReqVO reqVO);


    List<SysUserInfoVO> listUser(@Param("companyId")String companyId);
}
